package com.apache.ibatis.configuration;

import javax.sql.DataSource;
import java.util.concurrent.ConcurrentHashMap;


/**
 *  SQL语句信息封装类，mapper文件中会存在多条SQL
 */
public class Configuration {

    private DataSource dataSource;

    private ConcurrentHashMap<String, MappedStatement> mappedStatementHashMap = new ConcurrentHashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public ConcurrentHashMap<String, MappedStatement> getMappedStatementHashMap() {
        return mappedStatementHashMap;
    }

    public void setMappedStatementHashMap(ConcurrentHashMap<String, MappedStatement> mappedStatementHashMap) {
        this.mappedStatementHashMap = mappedStatementHashMap;
    }
}
